import { createRouter, createWebHistory,RouteRecordRaw} from "vue-router";

const routes: Array<RouteRecordRaw> = [
    {
        path: '/',
        name: 'HelloWorld',
        component: () => import( '../components/HelloWorld.vue')
    },
    {
        path: '/UserAdd',
        name: 'UserAdd',
        component: () => import('../view/UserAdd.vue')
    },
    {
        path: '/UserLogin',
        name: 'UserLogin',
        component: () => import('../view/UserLogin.vue')
    },
    {
        path: '/Show',
        name: 'Show',
        component: () => import('../view/Show.vue')
    },

]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router